﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.RedPacket.RedPacketReceive
{
    /// <summary>
    /// 红包领取记录
    /// </summary>
    [Table("RedPacketReceive")]
    public class RedPacketReceiveEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 红包领取记录id
        /// </summary>
        public long RedPacketReceiveId { get; set; }
        /// <summary>
        /// 红包编号
        /// </summary>
        public int RedPacketNumber { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 红包Id
        /// </summary>
        public long RedPacketId { get; set; }
        /// <summary>
        /// 红包类型Id
        /// </summary>
        public long RedPacketTypeId { get; set; }
        /// <summary>
        /// 红包类型
        /// </summary>
        public string RedPacketType { get; set; }
        /// <summary>
        /// 红包金额
        /// </summary>
        public decimal RedPacketAmount { get; set; }
        /// <summary>
        /// 获取方式
        /// </summary>
        public string GrundlagenType { get; set; }
        /// <summary>
        /// 红包姓名
        /// </summary>
        public string RedPacketName { get; set; }
        /// <summary>
        /// 代理商id
        /// </summary>
        public long AgentRecordId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 省编码
        /// </summary>
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 市编码
        /// </summary>
        public string CityCode { get; set; }
        /// <summary>
        /// 区编码
        /// </summary>
        public string CountyCode { get; set; }
    }
}
